package service

import (
	"bzppx-codepub-server/bzppx-agent/app"
	"encoding/json"
)

// 系统服务
type ServiceSystem struct {
}

/*// NewServiceSystem: 生成实例
func NewServiceSystem() *ServiceSystem {
	return &ServiceSystem{}
}*/

// Ping: ping服务  ping
func (s *ServiceSystem) Ping(args map[string]interface{}, reply *string) error {

	resMap := map[string]string{
		"version": app.Version,
	}

	resByte, _ := json.Marshal(resMap)
	*reply = string(resByte)
	return nil
}

/*// init: 自动注册 auto register
func init() {
	Register(NewServiceSystem())
}
*/
